package javaapplication1;

import java.awt.Graphics;

class Brick implements Drawable{
    
    private int ancho = 15;
    private int alto = 7;
    private Coordenada coordenada;
    private int resistencia;
    private int valor;
    
    public Brick(int coordenadaX, int coordenadaY){
        coordenada = new Coordenada(coordenadaX, coordenadaY);
    }

    @Override
    public void dibujar(Graphics g) {
        g.drawRect(coordenada.getX(), coordenada.getY(), ancho, alto);
    }

    public int getAncho() {
        return ancho;
    }

    public int getAlto() {
        return alto;
    }

    public Coordenada getCoordenada() {
        return coordenada;
    }

    public int getResistencia() {
        return resistencia;
    }

    public void setResistencia(int resistencia) {
        this.resistencia = resistencia;
    }

    public int getValor() {
        return valor;
    }

    public void setValor(int valor) {
        this.valor = valor;
    }

    @Override
    public void aniadir(Drawable drawable) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void eliminar(Drawable drawable) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Drawable obtenerHijo(int pos) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void accept(Visitor visitor) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
